.class public Lcom/esfile/screen/recorder/videos/edit/DialogActivity;
.super Lcom/esfile/screen/recorder/videos/edit/QuitBaseActivity;
.source "DialogActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;,
        Lcom/esfile/screen/recorder/videos/edit/DialogActivity$c;
    }
.end annotation


# static fields
.field public static f:Landroid/util/LongSparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/LongSparseArray<",
            "Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private b:Ljava/lang/String;

.field private c:Lcom/esfile/screen/recorder/videos/edit/DialogActivity$c;

.field private d:Lcom/esfile/screen/recorder/ui/a;

.field private e:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Landroid/util/LongSparseArray;

    invoke-direct {v0}, Landroid/util/LongSparseArray;-><init>()V

    sput-object v0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->f:Landroid/util/LongSparseArray;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/QuitBaseActivity;-><init>()V

    const-string v0, "DialogActivity"

    .line 2
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->b:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/DialogActivity;)Lcom/esfile/screen/recorder/ui/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->d:Lcom/esfile/screen/recorder/ui/a;

    return-object p0
.end method

.method public static a(Landroid/content/Context;Lcom/esfile/screen/recorder/ui/a$e;ZZLcom/esfile/screen/recorder/videos/edit/DialogActivity$c;Ljava/lang/String;)V
    .locals 10
    .param p5    # Ljava/lang/String;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 3
    sget-object v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->f:Landroid/util/LongSparseArray;

    invoke-virtual {v2, v0, v1}, Landroid/util/LongSparseArray;->indexOfKey(J)I

    move-result v2

    if-ltz v2, :cond_0

    const-wide/16 v2, 0x1

    add-long/2addr v0, v2

    .line 4
    :cond_0
    sget-object v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->f:Landroid/util/LongSparseArray;

    new-instance v9, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;

    move-object v3, v9

    move-object v4, p1

    move v5, p2

    move v6, p3

    move-object v7, p4

    move-object v8, p5

    invoke-direct/range {v3 .. v8}, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;-><init>(Lcom/esfile/screen/recorder/ui/a$e;ZZLcom/esfile/screen/recorder/videos/edit/DialogActivity$c;Ljava/lang/String;)V

    invoke-virtual {v2, v0, v1, v9}, Landroid/util/LongSparseArray;->put(JLjava/lang/Object;)V

    .line 5
    new-instance p1, Landroid/content/Intent;

    const-class p2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;

    invoke-direct {p1, p0, p2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 p2, 0x10000000

    .line 6
    invoke-virtual {p1, p2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    const-string p2, "data_key"

    .line 7
    invoke-virtual {p1, p2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;

    const/4 p2, 0x2

    const/high16 p3, 0x8000000

    .line 8
    :try_start_0
    invoke-static {p0, p2, p1, p3}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object p0

    invoke-virtual {p0}, Landroid/app/PendingIntent;->send()V
    :try_end_0
    .catch Landroid/app/PendingIntent$CanceledException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 9
    sget-boolean p1, Les/u6;->a:Z

    if-eqz p1, :cond_1

    .line 10
    invoke-virtual {p0}, Landroid/app/PendingIntent$CanceledException;->printStackTrace()V

    :cond_1
    :goto_0
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/DialogActivity;)Lcom/esfile/screen/recorder/videos/edit/DialogActivity$c;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->c:Lcom/esfile/screen/recorder/videos/edit/DialogActivity$c;

    return-object p0
.end method

.method private w()V
    .locals 6

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_2

    const-wide/16 v1, -0x1

    const-string v3, "data_key"

    .line 2
    invoke-virtual {v0, v3, v1, v2}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J

    move-result-wide v0

    .line 3
    sget-object v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->f:Landroid/util/LongSparseArray;

    invoke-virtual {v2, v0, v1}, Landroid/util/LongSparseArray;->get(J)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;

    if-eqz v2, :cond_1

    .line 4
    iget-object v3, v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;->c:Ljava/lang/String;

    .line 5
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_0

    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->b:Ljava/lang/String;

    :cond_0
    iput-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->b:Ljava/lang/String;

    .line 6
    iget-object v3, v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;->b:Lcom/esfile/screen/recorder/videos/edit/DialogActivity$c;

    iput-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->c:Lcom/esfile/screen/recorder/videos/edit/DialogActivity$c;

    .line 7
    iget-boolean v3, v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;->e:Z

    iput-boolean v3, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->e:Z

    .line 8
    iget-object v3, v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;->a:Lcom/esfile/screen/recorder/ui/a$e;

    if-eqz v3, :cond_1

    .line 9
    invoke-virtual {v3, p0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/content/Context;)Lcom/esfile/screen/recorder/ui/a;

    move-result-object v3

    iput-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->d:Lcom/esfile/screen/recorder/ui/a;

    const/4 v4, 0x0

    .line 10
    invoke-virtual {v3, v4}, Lcom/esfile/screen/recorder/ui/a;->f(I)V

    .line 11
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->d:Lcom/esfile/screen/recorder/ui/a;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/ui/a;->b()Landroid/content/DialogInterface$OnDismissListener;

    move-result-object v3

    .line 12
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->d:Lcom/esfile/screen/recorder/ui/a;

    new-instance v5, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$a;

    invoke-direct {v5, p0, v3}, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/DialogActivity;Landroid/content/DialogInterface$OnDismissListener;)V

    invoke-virtual {v4, v5}, Lcom/esfile/screen/recorder/ui/a;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 13
    iget-boolean v2, v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$d;->d:Z

    if-eqz v2, :cond_1

    .line 14
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->d:Lcom/esfile/screen/recorder/ui/a;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/ui/a;->show()V

    .line 15
    :cond_1
    sget-object v2, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->f:Landroid/util/LongSparseArray;

    invoke-virtual {v2, v0, v1}, Landroid/util/LongSparseArray;->remove(J)V

    :cond_2
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/QuitBaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->w()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method

.method protected onStart()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onStart()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->c:Lcom/esfile/screen/recorder/videos/edit/DialogActivity$c;

    if-eqz v0, :cond_0

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/DialogActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/DialogActivity;)V

    invoke-static {v0}, Les/xc;->a(Ljava/lang/Runnable;)V

    :cond_0
    return-void
.end method

.method protected onStop()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onStop()V

    .line 2
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->e:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->d:Lcom/esfile/screen/recorder/ui/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->d:Lcom/esfile/screen/recorder/ui/a;

    invoke-virtual {v0}, Landroid/app/Dialog;->cancel()V

    :cond_0
    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->b:Ljava/lang/String;

    return-object v0
.end method

.method protected v()Ljava/lang/String;
    .locals 1
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    const-string v0, "dialog_act"

    return-object v0
.end method
